<thead>
	<th>STT</th>
    <th><input type="checkbox" id="checkAll" /></th>
    <th>Họ tên</th>
	<th>Tài khoản</th>
    <th>Điện thoại</th>
	<th>Email</th>
	<th>Ngày sinh</th>
	<th>Giới tính</th>
    <th>Nhóm quyền</th>
    <th></th>
</thead>
<tbody>
	<?php $i=1; print_r($datas);
	foreach($datas as $item){
		
		if($item->birthday != '0000-00-00' && $item->birthday !=null){
			$birthday = date('d-m-Y',strtotime($item->birthday));
		}
		else{
			$birthday = '';
		}
		if($item->sex == 1){
			$sex = 'Nam';
		}
		else{
			$sex = 'Nữ';
		}
		?>
	<tr>
    	<td style="text-align:center !important;" class="tcenter"><?=$i;?></td>
        <td class="tcenter"><input name="keys[]" type="checkbox" id="<?=$item->id;?>"/></td>
        <td ><?=$item->fullname;?></td>
        <td class=""><?=$item->username;?></td>
		<td class=""><?=$item->phone;?></td>
		<td class=""><?=$item->email;?></td>
		<td class="tcenter"><?=$birthday?></td>
		<td class=""><?=$sex;?></td>
        <td class=""><?=$item->groupname;?></td>
        <td class="tcenter">
        	<span class="delete icon icon-delete w25" id="<?=$item->id;?>">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        	<span class="edit icon icon-edit w25" id="<?=$item->id;?>">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        </td>
    </tr>
    <?php $i++;}?>
</tbody>